﻿using System;

namespace EncryptDecrypt
{
    public class SymmetricKey : Microsoft.WindowsAzure.StorageClient.TableServiceEntity
    {
        public SymmetricKey()
        {
            this.PartitionKey = "SymmetricKey";
            CreateDate = DateTime.UtcNow;
        }

        public byte[] Key { get; set; }
        public byte[] iv { get; set; }

        public string CertificateThumbprint { get; set; }

        /// <summary>
        /// A version number assigned by the app using this library. New versions could use a different encryption algorithm, or just a new key for the same algorithm.
        /// </summary>
        public int Version { get; set; }

        public DateTime CreateDate { get; set; }

    }
}
